﻿using ApiLib.AppStart;
using SqlSugar;

namespace ApiLib.Cloud.Models;

/// <summary>
/// 微服务日志
///</summary>
[Tenant(GlobalConstants.MainDbConfigId), SugarTable("sys_cloud_log")]
public class SysCloudLog
{
    /// <summary>
    ///  
    ///</summary>
    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    /// <summary>
    /// 服务ID
    ///</summary>
    [SugarColumn(ColumnName = "server_id")]
    public int ServerId { get; set; }

    /// <summary>
    /// 服务 
    ///</summary>
    [SugarColumn(ColumnName = "server")]
    public string Server { get; set; }

    /// <summary>
    /// 行为 
    ///</summary>
    [SugarColumn(ColumnName = "action")]
    public string Action { get; set; }

    /// <summary>
    /// 详情 
    ///</summary>
    [SugarColumn(ColumnName = "detail")]
    public string Detail { get; set; }

    /// <summary>
    /// 时间 
    ///</summary>
    [SugarColumn(ColumnName = "time")]
    public DateTime? Time { get; set; }
}